package com.base.caselib.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by weikailiang on 2019/10/30.
 */

public class CaseType implements Parcelable{

    /**
     * id : dTZf4lPaGboiepJyWL9
     * preName : 案件受理审批流程-V10.0.1
     * preDesc :
     * preType : DbpgrHq0pxfwil4dvEx
     * preRole : []
     * isDelete : 0
     * createDate : 2019-10-09 16:53:03
     * createUserId : 906wPQYnJODuA4kwTZh
     * modifyDate : 2019-10-30 10:59:17
     * modifyUserId : CN_076
     * moduleId : null
     * ex1 : 1
     * ex2 : 0
     * ex3 : null
     * ex4 : null
     * ex5 : null
     * preStatus : 1
     */

    private String id;
    private String preName;
    private String preDesc;
    private String preType;
    private String preRole;
    private int isDelete;
    private String createDate;
    private String createUserId;
    private String modifyDate;
    private String modifyUserId;
    private String moduleId;
    private String ex1;
    private String ex2;
    private String ex3;
    private String ex4;
    private String ex5;
    private String preStatus;

    @Override
    public String toString() {
        return preName;
    }

    protected CaseType(Parcel in) {
        id = in.readString();
        preName = in.readString();
        preDesc = in.readString();
        preType = in.readString();
        preRole = in.readString();
        isDelete = in.readInt();
        createDate = in.readString();
        createUserId = in.readString();
        modifyDate = in.readString();
        modifyUserId = in.readString();
        moduleId = in.readString();
        ex1 = in.readString();
        ex2 = in.readString();
        ex3 = in.readString();
        ex4 = in.readString();
        ex5 = in.readString();
        preStatus = in.readString();
    }

    public static final Creator<CaseType> CREATOR = new Creator<CaseType>() {
        @Override
        public CaseType createFromParcel(Parcel in) {
            return new CaseType(in);
        }

        @Override
        public CaseType[] newArray(int size) {
            return new CaseType[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPreName() {
        return preName;
    }

    public void setPreName(String preName) {
        this.preName = preName;
    }

    public String getPreDesc() {
        return preDesc;
    }

    public void setPreDesc(String preDesc) {
        this.preDesc = preDesc;
    }

    public String getPreType() {
        return preType;
    }

    public void setPreType(String preType) {
        this.preType = preType;
    }

    public String getPreRole() {
        return preRole;
    }

    public void setPreRole(String preRole) {
        this.preRole = preRole;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(String modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getModifyUserId() {
        return modifyUserId;
    }

    public void setModifyUserId(String modifyUserId) {
        this.modifyUserId = modifyUserId;
    }

    public String getModuleId() {
        return moduleId;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    public String getEx1() {
        return ex1;
    }

    public void setEx1(String ex1) {
        this.ex1 = ex1;
    }

    public String getEx2() {
        return ex2;
    }

    public void setEx2(String ex2) {
        this.ex2 = ex2;
    }

    public String getEx3() {
        return ex3;
    }

    public void setEx3(String ex3) {
        this.ex3 = ex3;
    }

    public String getEx4() {
        return ex4;
    }

    public void setEx4(String ex4) {
        this.ex4 = ex4;
    }

    public String getEx5() {
        return ex5;
    }

    public void setEx5(String ex5) {
        this.ex5 = ex5;
    }

    public String getPreStatus() {
        return preStatus;
    }

    public void setPreStatus(String preStatus) {
        this.preStatus = preStatus;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(id);
        parcel.writeString(preName);
        parcel.writeString(preDesc);
        parcel.writeString(preType);
        parcel.writeString(preRole);
        parcel.writeInt(isDelete);
        parcel.writeString(createDate);
        parcel.writeString(createUserId);
        parcel.writeString(modifyDate);
        parcel.writeString(modifyUserId);
        parcel.writeString(moduleId);
        parcel.writeString(ex1);
        parcel.writeString(ex2);
        parcel.writeString(ex3);
        parcel.writeString(ex4);
        parcel.writeString(ex5);
        parcel.writeString(preStatus);
    }
}
